/*
 * Log.h
 *
 *  Created on: Sep 11, 2011
 *      Author: kimi
 */

#ifndef LOG_H_
#define LOG_H_
#include <string>
#include <iostream>
#include <fstream>
#include <time.h>

using namespace std;


class Log {

public:
//	static Log* getInstance();
	void close();

	void info (string label, string detail);
	void error (string label, string detail);
	void warning (string label, string detail);
	void plain (string detail);
	void newLine ();

	virtual ~Log();
	Log(string logFilePath);

private:

	void log(string type, string label, string detail);
	fstream	logFileStream;
	string	filePath;

};


#endif /* LOG_H_ */
